package polymorphicTask.Printer;

public class Test {
    public static void main(String[] args) {
        Printer p1=new DotMatrixPrinter();
        p1.print();
        Printer p2=new InkpetPringter();
        p2.print();
        Printer p3=new LaserPrinter();
        p3.print();
    }
}
